<template>
  <div class="box">
    <div class="content">
        <div class="inteswiper">
        <van-swipe class="my-swipe" indicator-color="#A193FE" style="height: 100%;" :loop="false">
            <van-swipe-item>
                <div class="dive">
                    <img src="./img/timg01.png" alt="tu">
                    <div class="button">
                        <span @click="home">跳过</span>
                    </div>
                </div>
            </van-swipe-item>
            <van-swipe-item>
                <div class="dive">
                    <img src="./img/zz.jpg" alt="tu">
                    <div class="button">
                        <span @click="home">跳过</span>
                    </div>
                </div>
            </van-swipe-item>
            <van-swipe-item>
                <div class="dive">
                    <img src="./img/kaiqi.jpg" alt="tu">
                    <div class="button">
                        <span @click="home">跳过</span>
                    </div>
                    <div class="buttons" @click="home">
                        开启音乐之旅
                    </div>
                </div>
            </van-swipe-item>
        </van-swipe>
        </div>
    </div>
  </div>
</template>
<script>
import Vue from 'vue'
import { Swipe, SwipeItem, Image as VanImage } from 'vant'
Vue.use(Swipe)
Vue.use(SwipeItem)
Vue.use(VanImage)
export default {
  methods: {
    home () {
      localStorage.setItem('isFirst', true)
      this.$router.replace('/Music')
    }
  }
}
</script>
<style lang="scss">
/deep/.van-swipe__indicator{
  background-color: #ECE9FF !important;
  width: 10px !important;
  height: 10px !important;
}
 .my-swipe .van-swipe-item {
    font-size: 20px;
    text-align: center;
    top: 0;
    .dive{
        position: relative;
       img{
           width: 3.6rem;
           height: 6.4rem
       }
       .button{
           position: absolute;
           top: 0.05rem;
           right: 0.15rem;
           span{
               color:black;
               font-size: 0.11rem;
           }
       }
       .buttons{
           position: absolute;
           bottom: 1.3rem;
           left: 35%;
           border: 1px solid #009660;
           padding: 0.1rem;
           font-size: 0.15rem;
           border-radius: 0.3rem;
           color: #009660;
       }
    }
  }

</style>
